import request from '@/utils/request'
const prefix = '/cecapitalexpend'
// 删除日历
export function delCalendar(id) {
  return request({
    url: `${prefix}/accountyear/${id}`,
    method: 'DELETE'
  })
}
// 保存日历
export function saveCalendar(data) {
  return request({
    url: `${prefix}/accountyear`,
    method: 'POST',
    data
  })
}
// 获取查询会计年度列表
export function getYearListData() {
  return request({
    url: `${prefix}/accountyear/getYear`,
    method: 'GET'
  })
}

// 获取会计年度查询
export function getYearList(id, inttype) {
  return request({
    url: `${prefix}/accountyear/${id}/${inttype}`,
    method: 'GET'
  })
}
// h获取最大会计年份相关信息

export function getAddMessage() {
  return request({
    url: `${prefix}/accountyear/getAddMessage`,
    method: 'GET'
  })
}
